// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   FactoryUtil.java

package com.itheima.travel.util;

import java.lang.reflect.Constructor;
import java.util.ResourceBundle;

public class FactoryUtil
{

	private static ResourceBundle resourceBundle = ResourceBundle.getBundle("impl");

	public FactoryUtil()
	{
	}

	public static Object getInstance(String itfName)
	{
		String className = resourceBundle.getString(itfName);
		return Class.forName(className).getConstructor(new Class[0]).newInstance(new Object[0]);
		Exception e;
		e;
		e.printStackTrace();
		return null;
	}

}
